.x-panel {
    border-style: solid;
    border-color: #cccccc;
}
.x-panel-header {
    color:#fafafa;
	border:1px solid #cccccc;
    background-image:url(../images/midnight/panel_white-top-bottom.gif);
}

.x-panel-body {
    border-color:#cccccc;
}

.x-panel-bbar .x-toolbar {
    border-color:#cccccc;
}

.x-panel-tbar .x-toolbar {
    border-color:#cccccc;
}

.x-panel-tbar-noheader .x-toolbar, .x-panel-mc .x-panel-tbar .x-toolbar {
    border-color:#cccccc;
}
.x-panel-body-noheader, .x-panel-mc .x-panel-body {
    border-color:#cccccc;
}
.x-panel-tl .x-panel-header {
    color:#f4f4f4;
}
.x-panel-tc {
	background-image:url(../images/midnight/panel_top-bottom.gif);
}
.x-panel-tl {
	background-image:url(../images/midnight/panel_corners-sprite.gif);
    border-color:#cccccc;
}
.x-panel-tr {
	background-image:url(../images/midnight/panel_corners-sprite.gif);
}
.x-panel-bc {
	background-image:url(../images/midnight/panel_top-bottom.gif);
}
.x-panel-bl {
	background-image:url(../images/midnight/panel_corners-sprite.gif);
}
.x-panel-br {
	background-image:url(../images/midnight/panel_corners-sprite.gif);
}
.x-panel-mc {
    background:#e4e6ef;
}
.x-panel-mc .x-panel-body {
    background:transparent;
    border: 0 none;
}
.x-panel-ml {
	background-image:url(../images/midnight/panel_left-right.gif);
}
.x-panel-mr {
	background-image:url(../images/midnight/panel_left-right.gif);
}

.x-panel-dd-spacer{
	border:2px dashed #89a;
}


/* Tools */
.x-tool {
    background-image:url(../images/midnight/panel_tool-sprites.gif);
}

/* Ghosting */
.x-panel-ghost {
    background:#e0e0e0;
}

.x-panel-ghost ul {
    border-color:#b0b0b0;
}

.x-grid-panel .x-panel-mc .x-panel-body {
    border:1px solid #cccccc;
}

/* Buttons */

.x-btn-left{
	background-image:url(../images/midnight/button_btn-sprite.gif);
}
.x-btn-right{
	background-image:url(../images/midnight/button_btn-sprite.gif);
}
.x-btn-center{
	background-image:url(../images/midnight/button_btn-sprite.gif);
}
.x-btn-over button{
	color:#fff;
}
.x-btn-focus button{
	color:#fff;
}
.x-btn-text-icon .x-btn-with-menu .x-btn-center em {
	background:transparent url(../images/midnight/toolbar_btn-arrow.gif) no-repeat scroll right 3px;
}
.x-btn-with-menu .x-btn-center em {
	background:transparent url(../images/midnight/toolbar_btn-arrow.gif) no-repeat scroll right 0pt;
}
.x-btn-menu-arrow-wrap .x-btn-center button{
	background:transparent url(../images/midnight/button_btn-arrow.gif) no-repeat left 3px;
}
.x-btn-text,.x-btn-text-icon{color:#fff;font-weight:bold !important;}
.x-item-disabled{color:#999;}


/* Layout classes */

.x-border-layout-ct {
    background:#f0f0f0;
}

.x-accordion-hd {
	background-image:url(../images/midnight/panel_light-hd.gif);
}

.x-layout-collapsed{
    background-color:#141847;
    border-color:#e0e0e0;
}
.x-layout-collapsed-over{
	 background-color:#171763;
}



/* Toolbars */

.x-toolbar{
	border-color:#cccccc;
    background:#f0f4f5 url(../images/midnight/toolbar_bg.gif) repeat-x top left;
}
.x-toolbar button {
    color:#f4f4f4;
}
.x-toolbar .ytb-text {
	color:white;
}
.x-toolbar .x-btn-menu-arrow-wrap .x-btn-center button {
    background-image:url(../images/midnight/toolbar_btn-arrow.gif);
}
.x-toolbar .x-btn-text-icon .x-btn-menu-arrow-wrap .x-btn-center button {
    background-image:url(../images/midnight/toolbar_btn-arrow.gif);
}
.x-toolbar .x-btn-over .x-btn-left{
	background-image:url(../images/midnight/toolbar_tb-btn-sprite.gif);
}
.x-toolbar .x-btn-over .x-btn-right{
	background-image:url(../images/midnight/toolbar_tb-btn-sprite.gif);
}
.x-toolbar .x-btn-over .x-btn-center{
	background-image:url(../images/midnight/toolbar_tb-btn-sprite.gif);
}
.x-toolbar .x-btn-over button {
    color:#fff;
}
.x-toolbar .x-btn-click .x-btn-left, .x-toolbar .x-btn-pressed .x-btn-left, .x-toolbar .x-btn-menu-active .x-btn-left{
	background-image:url(../images/midnight/toolbar_tb-btn-sprite.gif);
}
.x-toolbar .x-btn-click .x-btn-right, .x-toolbar .x-btn-pressed .x-btn-right, .x-toolbar .x-btn-menu-active .x-btn-right{
	background-image:url(../images/midnight/toolbar_tb-btn-sprite.gif);
}

.x-toolbar .x-btn-click .x-btn-center, .x-toolbar .x-btn-pressed .x-btn-center, .x-toolbar .x-btn-menu-active .x-btn-center{
	background-image:url(../images/midnight/toolbar_tb-btn-sprite.gif);
}
.x-toolbar .ytb-sep {
	background-image: url(../images/midnight/grid_grid-split.gif);
}

/* Menus */

.x-menu{
	border:1px solid #aaa;
	background:#f0f0f0 url(../images/midnight/menu_menu.gif) repeat-y;
}
.x-menu-item-active{
	background:#ebf3fd url(../images/midnight/menu_item-over.gif) repeat-x left bottom;
	border:1px solid #c2cbd2;
}
.x-menu-item-arrow{
	background:transparent url(../images/midnight/menu_menu-parent.gif) no-repeat right;
}


/* Tabs */

.x-tab-panel-header, .x-tab-panel-footer {
	
	background: #444a7d;
	border-color:#4f657b;
}


.x-tab-panel-header {
	border-color:#cccccc;
}

.x-tab-panel-footer {
	border-color:#cccccc;
}

ul.x-tab-strip-top{
	background:#dbdbdb url(../images/midnight/tabs_tab-strip-bg.gif) repeat-x left top;
	border-color:#4c647e;
    padding-top: 2px;
}

ul.x-tab-strip-bottom{
	background-image:url(../images/midnight/tabs_tab-strip-btm-bg.gif);
	border-color:#566c82;
}

.x-tab-strip span.x-tab-strip-text {
	color:#333;
}
.x-tab-strip-over span.x-tab-strip-text {
	color:#111;
}

.x-tab-strip-active span.x-tab-strip-text {
	color:#fff;
}

.x-tab-strip-disabled .x-tabs-text {
	color:#aaaaaa;
}

.x-tab-strip-top .x-tab-right {
	background-image:url(../images/midnight/tabs_tabs-sprite.gif);
}

.x-tab-strip-top .x-tab-left {
	background-image:url(../images/midnight/tabs_tabs-sprite.gif);
}
.x-tab-strip-top .x-tab-strip-inner {
	background-image:url(../images/midnight/tabs_tabs-sprite.gif);
}

.x-tab-strip-bottom .x-tab-right {
	background-image:url(../images/midnight/tabs_tab-btm-inactive-right-bg.gif);
}

.x-tab-strip-bottom .x-tab-left {
	background-image:url(../images/midnight/tabs_tab-btm-inactive-left-bg.gif);
}

.x-tab-strip-bottom .x-tab-strip-active .x-tab-right {
	background-image:url(../images/midnight/tabs_tab-btm-right-bg.gif);
}

.x-tab-strip-bottom .x-tab-strip-active .x-tab-left {
	background-image:url(../images/midnight/tabs_tab-btm-left-bg.gif);
}

.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close {
	background-image:url(../images/midnight/tabs_tab-close.gif);
}
.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{
	background-image:url(../images/midnight/tabs_tab-close.gif);
}

.x-tab-panel-body {
    border-color:#cccccc;
    background:#fff;
}
.x-tab-panel-bbar .x-toolbar {
    border-color: #cccccc;
}

.x-tab-panel-tbar .x-toolbar {
    border-color: #cccccc;
}

.x-tab-panel-header-plain .x-tab-strip-spacer {
    border-color:#cccccc;
	background: #444a7d;
}

.x-tab-scroller-left {
    background-image: url(../images/midnight/tabs_scroll-left.gif);
    border-color:#aeaeae;
}
.x-tab-scroller-right {
    background-image: url(../images/midnight/tabs_scroll-right.gif);
    border-color:#aeaeae;
}

/* Window */

.x-window-proxy {
    background:#e4e8ec;
    border-color:#cccccc;
}

.x-window-tl .x-window-header {
    color:#fafafa;
}
.x-window-tc {
	background-image:url(../images/midnight/window_top-bottom.png);
}
.x-window-tl {
	background-image:url(../images/midnight/window_left-corners.png);
}
.x-window-tr {
	background-image:url(../images/midnight/window_right-corners.png);
}
.x-window-bc {
	background-image:url(../images/midnight/window_top-bottom.png);
}
.x-window-bl {
	background-image:url(../images/midnight/window_left-corners.png);
}
.x-window-br {
	background-image:url(../images/midnight/window_right-corners.png);
}
.x-window-mc {
    border:1px solid #cccccc;
    background:#e8e8e8;
}

.x-window-ml {
	background-image:url(../images/midnight/window_left-right.png);
}
.x-window-mr {
	background-image:url(../images/midnight/window_left-right.png);
}
.x-panel-ghost .x-window-tl {
    border-color:#cccccc;
}
.x-panel-collapsed .x-window-tl {
    border-color:#cccccc;
}

.x-window-plain .x-window-mc {
    background: #e8e8e8;
    border-right:1px solid #eee;
    border-bottom:1px solid #eee;
    border-top:1px solid #cccccc;
    border-left:1px solid #cccccc;
}

.x-window-plain .x-window-body {
    border-left:1px solid #ddd;
    border-top:1px solid #ddd;
    border-bottom:1px solid #cccccc;
    border-right:1px solid #cccccc;
    background:transparent !important;
}

body.x-body-masked .x-window-mc, body.x-body-masked .x-window-plain .x-window-mc {
    background-color: #eceef0;
}


/* HTML Editor */
.x-html-editor-wrap {
    border-color:#cccccc;
}
.x-html-editor-tb .x-btn-text {
	background:transparent url(../images/midnight/editor_tb-sprite.gif) no-repeat scroll 0%;
}


/* Borders go last for specificity */
.x-panel-noborder .x-panel-body-noborder {
    border-width:0;
}

.x-panel-noborder .x-panel-header-noborder {
    border-width:0;
    border-bottom:1px solid #cccccc;
}

.x-panel-noborder .x-panel-tbar-noborder .x-toolbar {
    border-width:0;
    border-bottom:1px solid #cccccc;
}

.x-panel-noborder .x-panel-bbar-noborder .x-toolbar {
    border-width:0;
    border-top:1px solid #cccccc;
}

.x-window-noborder .x-window-mc {
    border-width:0;
}
.x-window-plain .x-window-body-noborder {
    border-width:0;
}

.x-tab-panel-noborder .x-tab-panel-body-noborder {
	border-width:0;
}

.x-tab-panel-noborder .x-tab-panel-header-noborder {
	border-top-width:0;
	border-left-width:0;
	border-right-width:0;
}

.x-tab-panel-noborder .x-tab-panel-footer-noborder {
	border-bottom-width:0;
	border-left-width:0;
	border-right-width:0;
}


.x-tab-panel-bbar-noborder .x-toolbar {
    border-width:0;
    border-top:1px solid #cccccc;
}

.x-tab-panel-tbar-noborder .x-toolbar {
    border-width:0;
    border-bottom:1px solid #cccccc;
}

/* Forms */
.x-form-text, textarea.x-form-field {
	border:1px solid #9ab; 
}
.x-trigger-wrap-focus .x-form-trigger {
	border-bottom:1px solid #4a7192;
}
.x-form-focus,textarea.x-form-focus {
	border:1px solid #4a7192;
}

.x-form-field-wrap .x-form-trigger {
	background:transparent url(../images/midnight/form_trigger.gif) no-repeat 0 0;
}
.x-form-field-wrap .x-form-date-trigger {
	background-image:url(../images/midnight/form_date-trigger.gif);
}
.x-form-field-wrap .x-form-clear-trigger {
	background-image:url(../images/midnight/form_clear-trigger.gif);
}
.x-form-field-wrap .x-form-search-trigger {
	background-image:url(../images/midnight/form_search-trigger.gif);
}

.x-form-field-wrap .x-form-trigger {
	border-bottom:1px solid #778899;
}

.x-form fieldset legend {
	color:#333;
}

/* 	the following need to be duplicated from ext-all.js,
	otherwise hover effects are broken */
.x-form-field-wrap .x-form-trigger-over{background-position:-17px 0;}
.x-form-field-wrap .x-form-trigger-click{background-position:-34px 0;}
.x-trigger-wrap-focus .x-form-trigger{background-position:-51px 0;}
.x-trigger-wrap-focus .x-form-trigger-over{background-position:-68px 0;}
.x-trigger-wrap-focus .x-form-trigger-click{background-position:-85px 0;}


/* Grid */

.x-grid3-row-selected {
	background:#fbf0d2;
	border:1px dotted #ccc;
}
.x-grid3-hd-btn{
	background:#f2daa9 url(../images/midnight/grid_grid3-hd-btn.gif) no-repeat left center;
}
.x-grid3-header{
	background:#f9f9f9 url(../images/midnight/grid_grid3-hrow.gif) repeat-x 0 bottom;
}
td.x-grid3-hd-over .x-grid3-hd-inner,td.sort-desc .x-grid3-hd-inner,td.sort-asc .x-grid3-hd-inner,td.x-grid3-hd-menu-open .x-grid3-hd-inner{
	background:#ebf3fd url(../images/midnight/grid_grid3-hrow-over.gif) repeat-x left bottom;
}
.sort-asc .x-grid3-sort-icon{
	background-image:url(../images/midnight/grid_sort_asc.gif);
}
.sort-desc .x-grid3-sort-icon{
	background-image:url(../images/midnight/grid_sort_desc.gif);
}
td.x-grid3-hd-over, td.sort-desc, td.sort-asc, td.x-grid3-hd-menu-open {
	border-left:1px solid #fff;
	border-right:1px solid #ccc;
}
.x-grid3-cell-selected{
	background-color:#e0eaee!important;
}
.x-grid3-body .x-grid3-td-expander{
	background:transparent url(../images/midnight/grid_grid3-special-col-bg.gif) repeat-y right;
}
.x-grid3-body .x-grid3-td-checker{
	background:transparent url(../images/midnight/grid_grid3-special-col-bg.gif) repeat-y right;
}
.x-grid3-body .x-grid3-td-numberer{
	background:transparent url(../images/midnight/grid_grid3-special-col-bg.gif) repeat-y right;
}
.x-grid3-body .x-grid3-row-selected .x-grid3-td-numberer,.x-grid3-body .x-grid3-row-selected .x-grid3-td-checker,.x-grid3-body .x-grid3-row-selected .x-grid3-td-expander{
	background:transparent url(../images/midnight/grid_grid3-special-col-sel-bg.gif) repeat-y right;
}
.x-grid-group-hd {
	border-bottom:2px solid #abb;
}
.x-grid-group-hd div {
	color: #456;
}
.x-dd-drag-proxy .x-grid3-hd-inner{
	background:#ebf3fd url(../images/midnight/grid_grid3-hrow-over.gif) repeat-x left bottom;
	border:1px solid #cccccc;
}
.x-tbar-page-first{
	background-image:url(../images/midnight/grid_page-first.gif)!important;
}
.x-tbar-page-last{
	background-image:url(../images/midnight/grid_page-last.gif)!important;
}
.x-tbar-page-next{
	background-image:url(../images/midnight/grid_page-next.gif)!important;
}
.x-tbar-page-prev{
	background-image:url(../images/midnight/grid_page-prev.gif)!important;
}
.x-paging-info {
	color:#FFFFFF;
}


/* Progress Bar */

.x-progress-bar{
	background:#9CBFEE url( ../../resources/images/midnight/progress_progress-bg.gif ) repeat-x left center;
	border-top:1px solid #ddd;
	border-bottom:1px solid #ddd;
}


/* Combos */
.x-combo-list{
	border:1px solid #89a;
}
.x-combo-list .x-combo-selected{
	border:1px dotted #ccc!important;
	background:#fbf0d2;
}


/* Calendars */

.x-date-middle,.x-date-left,.x-date-right{
	background:url(../images/midnight/shared_hd-sprite.gif) repeat-x 0 -83px;
}
.x-date-bottom {
	background:#DFECFB url(../images/midnight/shared_glass-bg.gif) repeat-x scroll left top;
	border-top:1px solid #cccccc;
}
.x-date-right a{
	background-image:url(../images/midnight/shared_right-btn.gif);
}
.x-date-left a{
	background-image:url(../images/midnight/shared_left-btn.gif);
}
.x-date-inner th{
	background:#dfecfb url(../images/midnight/shared_glass-bg.gif) repeat-x left top;
	border-bottom:1px solid #cccccc;
	color:#345;
}
.x-date-inner .x-date-selected a {
	background:#dfecfb url(../images/midnight/shared_glass-bg.gif) repeat-x scroll left top;
	border:1px solid #89a;
}
.x-date-inner a:hover,.x-date-inner .x-date-disabled a:hover{
	background:#cfdce1;
}
td.x-date-mp-month a:hover,td.x-date-mp-year a:hover{
	color:#123;
	background:#cfdce1;
}
.x-date-mp-ybtn a{
	background:transparent url(../images/midnight/panel_tool-sprites.gif) no-repeat;
}
.x-date-mp-btns {
	background:#dfecfb url(../images/midnight/shared_glass-bg.gif) repeat-x scroll left top;
}
td.x-date-mp-sel a{
	background:#dfecfb url(../images/midnight/shared_glass-bg.gif) repeat-x left top;
	border:1px solid #cccccc;
}
.x-date-mp-btns button{
	background:#405574;
	border:1px solid;
	border-color:#cccccc #055 #055 #cccccc;
}

/* Resizable Handle */
.x-resizable-over .x-resizable-handle-east,.x-resizable-pinned .x-resizable-handle-east{
	background:url(../images/midnight/sizer_e-handle.gif);background-position:left;
}
.x-resizable-over .x-resizable-handle-west,.x-resizable-pinned .x-resizable-handle-west{
	background:url(../images/midnight/sizer_e-handle.gif);background-position:left;
}
.x-resizable-over .x-resizable-handle-south,.x-resizable-pinned .x-resizable-handle-south{
	background:url(../images/midnight/sizer_s-handle.gif);background-position:top;
}
.x-resizable-over .x-resizable-handle-north,.x-resizable-pinned .x-resizable-handle-north{
	background:url(../images/midnight/sizer_s-handle.gif);background-position:top;
}
.x-resizable-over .x-resizable-handle-southeast,.x-resizable-pinned .x-resizable-handle-southeast{
	background:url(../images/midnight/sizer_se-handle.gif);background-position:top left;
}
.x-resizable-over .x-resizable-handle-northwest,.x-resizable-pinned .x-resizable-handle-northwest{
	background:url(../images/midnight/sizer_nw-handle.gif);background-position:bottom right;
}
.x-resizable-over .x-resizable-handle-northeast,.x-resizable-pinned .x-resizable-handle-northeast{
	background:url(../images/midnight/sizer_ne-handle.gif);background-position:bottom left;
}
.x-resizable-over .x-resizable-handle-southwest,.x-resizable-pinned .x-resizable-handle-southwest{
	background:url(../images/midnight/sizer_sw-handle.gif);background-position:top right;
}

/* Tips */
.x-tip .x-tip-close{
	background-image:url(../images/midnight/qtip_close.gif);
}
.x-tip .x-tip-tc{
	background:transparent url(../images/midnight/qtip_tip-sprite.gif) no-repeat 0 -62px;
}
.x-tip .x-tip-tl{
	background:transparent url(../images/midnight/qtip_tip-sprite.gif) no-repeat 0 0;
}
.x-tip .x-tip-tr{
	background:transparent url(../images/midnight/qtip_tip-sprite.gif) no-repeat right 0;
}
.x-tip .x-tip-bc{
	background:transparent url(../images/midnight/qtip_tip-sprite.gif) no-repeat 0 -121px;
}
.x-tip .x-tip-bl{
	background:transparent url(../images/midnight/qtip_tip-sprite.gif) no-repeat 0 -59px;
}
.x-tip .x-tip-br{
	background:transparent url(../images/midnight/qtip_tip-sprite.gif) no-repeat right -59px;
}
.x-tip .x-tip-ml{
	background:#fff url(../images/midnight/qtip_tip-sprite.gif) no-repeat 0 -124px;
}
.x-tip .x-tip-mr{
	background:transparent url(../images/midnight/qtip_tip-sprite.gif) no-repeat right -124px;
}
.x-form-invalid-tip .x-tip-tc{background:url(../images/default/form/error-tip-corners.gif) repeat-x 0 -12px;padding-top:6px;}
.x-form-invalid-tip .x-tip-tl{background-image:url(../images/default/form/error-tip-corners.gif);}
.x-form-invalid-tip .x-tip-tr{background-image:url(../images/default/form/error-tip-corners.gif);}
.x-form-invalid-tip .x-tip-bc{background:url(../images/default/form/error-tip-corners.gif) repeat-x 0 -18px;height:6px;}
.x-form-invalid-tip .x-tip-bl{background:url(../images/default/form/error-tip-corners.gif) no-repeat 0 -6px;}
.x-form-invalid-tip .x-tip-br{background:url(../images/default/form/error-tip-corners.gif) no-repeat right -6px;}
.x-form-invalid-tip .x-tip-ml{background-image:url(../images/default/form/error-tip-corners.gif);}
.x-form-invalid-tip .x-tip-mr{background-image:url(../images/default/form/error-tip-corners.gif);}




/* Miscellaneous */

.x-item-disabled * {
	color:#333 !important;
}
